Total Complexity | 3 |
Total Lines | 29 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | import "animate.css"; |
||
7 | const textInput = window.document.getElementById( |
||
8 | "bilinformasjon" |
||
9 | ) as HTMLInputElement; |
||
10 | const textForm = window.document.getElementById("regnrform") as HTMLFormElement; |
||
11 | |||
12 | if (textInput && textForm) { |
||
13 | console.log("textInput:", textInput); |
||
14 | |||
15 | textInput.addEventListener("input", checkValidText); |
||
16 | textForm.addEventListener("submit", sendForm); |
||
17 | } |
||
18 | }; |
||
19 | |||
20 | initialize(); |
||
21 |